﻿@{
    ViewBag.Title = "公司详情页面";
    @model ServiceSingleDataResult<CorporationDto>
}
@if (Model != null && Model.Successful && Model.Data.ID > 0)
{
    <div class="wrapper wrapper-content animated fadeInRight ">
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-12">
                <h2>Detail Page</h2>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item">
                        <a href="index.html">Home</a>
                    </li>
                    <li class="breadcrumb-item">
                        <a>Corportiao</a>
                    </li>
                    <li class="breadcrumb-item active">
                        <strong>Detail</strong>
                    </li>
                </ol>
            </div>
            @*<div class="col-lg-2 hidden">

                </div>*@
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-title">
                        <h5>@ViewBag.Title <small>请填写相关数据.</small></h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user hide disabled">
                                <li>
                                    <a href="#" class="dropdown-item">Config option 1</a>
                                </li>
                                <li>
                                    <a href="#" class="dropdown-item">Config option 2</a>
                                </li>
                            </ul>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="form-group row">
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司全称</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.FullName.IsNotNull()? Model.Data.FullName:string.Empty)</label>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司名称</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.Name.IsNotNull()? Model.Data.Name : string.Empty)</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label" title="营业执照等三证">营业执照</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.BusinessLicense.IsNotNull()? Model.Data.BusinessLicense : string.Empty)</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司法人</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.LegalPerson.IsNotNull()? Model.Data.LegalPerson : string.Empty)</label>
                                </div>
                            </div>

                        </div>
                        <div class="form-group row">

                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">法人证件号</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.LegalPersonIDCardNo.IsNotNull()? Model.Data.LegalPersonIDCardNo : string.Empty)</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">法人联系方式</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.LegalPersonPhone.IsNotNull()? Model.Data.LegalPersonPhone : string.Empty)</label>
                                </div>
                            </div>

                        </div>
                        <div class="form-group row">
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司联系方式</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.Telephone.IsNotNull()? Model.Data.Telephone : string.Empty)</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司传真号</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.FaxNumber.IsNotNull()? Model.Data.FaxNumber : string.Empty)</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司技术支持</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.SupportEMail.IsNotNull()? Model.Data.SupportEMail : string.Empty)</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">所在区划</label>
                                    <div class="col-md-8">
                                        <select class="form-control col selectpicker show-tick" data-live-search="true" data-style="btn-success" data-size="11" data-width="fit" data-actions-box="true" title="请选择" name="AreaID" id="seltProvinceAreaID">
                                        </select>
                                        <select class="form-control col selectpicker show-tick" data-live-search="true" data-style="btn-success" data-size="11" data-width="fit" data-actions-box="true" title="请选择" name="AreaID" id="seltCityAreaID">
                                        </select>
                                        <select class="form-control col selectpicker show-tick" data-live-search="true" data-style="btn-success" data-size="11" data-width="fit" data-actions-box="true" title="请选择" name="AreaID" id="seltCistrictAreaID">
                                        </select>
                                        <select class="form-control col selectpicker show-tick" data-live-search="true" data-style="btn-success" data-size="11" data-width="auto" data-actions-box="true" title="请选择" name="AreaID" id="seltStreetAreaID">
                                        </select>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">公司详细地址</label>
                                    <label class="col-md-8 col-form-label">@( Model.Data.CorporationAddress.IsNotNull()? Model.Data.CorporationAddress : string.Empty)</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <label class="col-md-3 offset-md-1 col-form-label">备注信息</label>
                                    <div class="col-md-8">
                                        <textarea type="text" rows="3" disabled class="form-control">@( Model.Data.Remarks.IsNotNull()? Model.Data.Remarks : string.Empty)</textarea>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="form-group row">
                            <div class="col-md-4 col-md-offset-2">
                                <button class="btn btn-white btn-sm" type="button">返回</button>
                            </div>
                        </div>

                        <input type="hidden" id="hidAreaIDs" name="hidAreaIDs" value="@Model.Data.AreaIDs" />
                        <input type="hidden" class="form-control" name="Successful" id="Successful" value="@(Model.Successful ? 1 : 0)" message="@(Model.Message.IsNotNull() ? Model.Message : string.Empty)" frompageuri="@(Model.PrevURI)" />

                    </div>
                </div>
            </div>
        </div>
    </div>
}
else
{
    <input type="hidden" class="form-control" name="Successful" id="Successful" value="@(Model.Successful ? 1 : 0)" message="@(Model.Message.IsNotNull() ? Model.Message : string.Empty)" frompageuri="@(Model.PrevURI)" />
}

@section Scripts {
    @{await Html.RenderPartialAsync("_BootstrapSelectPartial"); }
    <script src="~/js/Corporation/Detail.js" type="text/javascript" asp-append-version="true"></script>
}
